package com.vx.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.vx.ratingTool.bo.PlayerBOimpl;

@Controller
@RequestMapping("/ratingTool")
public class RatingToolController {

	private PlayerBOimpl playerBO;

	@RequestMapping(method = RequestMethod.GET)
	public String welcome(Model model) {
		try {
			playerBO.setUpFactory();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "ratingTool";
	}

	public PlayerBOimpl getPlayerBO() {
		return playerBO;
	}

	@Autowired
	public void setPlayerBO(PlayerBOimpl playerBO) {
		this.playerBO = playerBO;
	}
}
